package com.ct.reslib.earth.report.controller;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author liusl
 * @description: 报告模板管理
 * @date 2024/8/27 下午1:28
 */
@Tag(name = "报告模板管理")
@RestController
@RequestMapping("/reportTemplate")
public class ReportTemplateController {
    @Value("${report.TemplatePath}")
    private String filePath;

    public CommonResult uploadTemplate(@RequestParam("file") MultipartFile file,@RequestParam("templateName") String template){

        return CommonResult.success(filePath);
    }
}
